//
//  YNSReusableSectionView.m
//  HNBaseProject
//
//  Created by TR on 2024/9/17.
//

#import "YNSReusableSectionView.h"

@implementation YNSReusableSectionView
- (instancetype)initWithFrame:(CGRect)frame {
    if (self =[super initWithFrame:frame])
    {
        self.backgroundColor = [UIColor whiteColor];
       
        [self addSubview:self.tLab];
        [self addSubview:self.cLab];
        
        [self.tLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(15);
            make.top.offset(35);
        }];
        [self.cLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.tLab.mas_bottom).offset(7);
            make.left.offset(15);
        }];
    }
    return self;
}

- (UILabel*)tLab {
    if (!_tLab)
    {
        _tLab = [[UILabel alloc]init];
        _tLab.textColor = [UIColor colorWithHexString:@"#000000"];
        _tLab.font = PFRFontSemibold(20);
        _tLab.text = NSLocalizedString(@"大家正在做",nil);//@"大家正在做";
    }
    return _tLab;
}

- (UILabel*)cLab {
    if (!_cLab)
    {
        _cLab = [[UILabel alloc]init];
        _cLab.textColor = [UIColor colorWithHexString:@"#9A9A9A"];
        _cLab.font = [UIFont systemFontOfSize:13];
        _cLab.text = NSLocalizedString(@"寻找", nil) ;
    }
    return _cLab;
}
@end
